<include file="Public:pagerForm" />

<div class="pageHeader">
	<form rel="pagerForm" onsubmit="return navTabSearch(this);" action="__URL__" method="post">
	<div class="searchBar">
		<table>
          <tr>
           <td>关键字：</td>
           <td><input type="text" name="selectname" value=""/></td>
           <td>
                <select class="combox" name="ordertype">
                    <option value="0" <eq name="_POST['ordertype']" value="0" >selected</eq>>所有订单</option>
                	<option value="1" <eq name="_POST['ordertype']" value="1" >selected</eq>>未结案</option>
                	<option value="2" <eq name="_POST['ordertype']" value="2" >selected</eq>>已结案</option>
                </select>
           </td>
          </tr>
         </table> 
		<div class="subBar">
			<ul>
				<li><div class="buttonActive"><div class="buttonContent"><button type="submit">查询</button></div></div></li>
			</ul>
		</div>
	</div>
	</form>
</div>

<div class="pageContent">
	<div class="panelBar">
		<ul class="toolBar">
			<li><a class="add" href="__URL__/add" target="navTab" mask="true"><span>新增订单</span></a></li>
			<li><a class="delete" href="__URL__/foreverdelete/id/{sid_user}/navTabId/__MODULE__" target="ajaxTodo" title="警告:删除后无法恢复，你确定要删除这个订单吗？" warn="请选择费用类型"><span>删除订单</span></a></li>
			<!--<li><a class="edit" href="__URL__/edit/id/{sid_user}" target="dialog" mask="true" warn="请选择费用类型"><span>编辑订单</span></a></li>-->
			</ul>
	</div>

	<div layoutH="115" id="w_list_print">
	<table class="list" targetType="navTab" asc="asc" desc="desc">
		<thead>
		<tr>
			<th aling=center>编号</th>
			<th align=center orderField="ordernumber" <if condition="$_REQUEST._order eq 'ordernumber'">class="{$_REQUEST._sort}"</if>>单据编号</th>
			<th align=center orderField="custid" <if condition="$_REQUEST._order eq 'custid'">class="{$_REQUEST._sort}"</if>>订购单位</th>
			<th align=center orderField="orderman" <if condition="$_REQUEST._order eq 'orderman'">class="{$_REQUEST._sort}"</if>>联系人</th>
            <th align=center orderField="ordertime" <if condition="$_REQUEST._order eq 'ordertime'">class="{$_REQUEST._sort}"</if>>下单日期</th>
            <th align=center orderField="deliverytime" <if condition="$_REQUEST._order eq 'deliverytime'">class="{$_REQUEST._sort}"</if>>截止日期</th>
            <th align=center orderField="ordernums" <if condition="$_REQUEST._order eq 'ordernums'">class="{$_REQUEST._sort}"</if>>订单数量</th>
            <th align=center orderField="orderamount" <if condition="$_REQUEST._order eq 'orderamount'">class="{$_REQUEST._sort}"</if>>订单金额(￥)</th>
            <th align=center orderField="custorder" <if condition="$_REQUEST._order eq 'custorder'">class="{$_REQUEST._sort}"</if>>客户单据</th>
            <th align=center orderField="createuser" <if condition="$_REQUEST._order eq 'createuser'">class="{$_REQUEST._sort}"</if>>制单人</th>
            <th align=center orderField="createtime" <if condition="$_REQUEST._order eq 'createtime'">class="{$_REQUEST._sort}"</if>>建单日期</th> 
            <th align=center orderField="status" <if condition="$_REQUEST._order eq 'status'">class="{$_REQUEST._sort}"</if>>订单状态</th>     	
		</tr>
		</thead>
		<tbody>
		<volist id="vo" name="list">
			<tr target="sid_user" rel="{$vo['id']}">
				<td align=center>{$vo['id']}</td>
				<td align=center><a href="__URL__/printOrder/orderId/{$vo['id']}" class="printOrder" title="{$vo['ordernumber']}" target="navTab" mask="true">{$vo['ordernumber']}</a></td>
				<td>{$vo['custid']|getTableColVal=Contacts,comname}</td> 
                <td align=center>{$vo['orderman']}</td> 
                <td align=center>{$vo['ordertime']|date="Y-m-d",###}</td> 
                <td align=center>{$vo['deliverytime']|date="Y-m-d",###}</td> 
                <td align=right>{$vo['ordernums']}</td> 
                <td align=right>{$vo['orderamount']}</td> 
                <td align=center>{$vo['custorder']}</td> 
                <td align=center>{$vo['createuser']|getTableColVal=User,nickname}</td> 
                <td align=center>{$vo['createtime']|date="Y-m-d  H:i:s",###}</td>
                <td align=center>{$vo['status']|getOdestatus}</td>                       
			</tr>
		</volist>
		</tbody>
	</table>
    </div>
	<div class="panelBar">
		<div class="pages">
			<span>共{$totalCount}条</span>
		</div>
		<div class="pagination" targetType="navTab" totalCount="{$totalCount}" numPerPage="{$numPerPage}" pageNumShown="10" currentPage="{$currentPage}"></div>
	</div>

</div>


